package com.llxwz.util;

public interface CommunityConstant {

    /**
     * 激活成功
     */
    int ACTIVATION_SUCCESS = 0;

    /**
     * 重复激活
     */
    int ACTIVATION_REPEAT = 1;

    /**
     * 激活失败
     */
    int ACTIVATION_FAILURE = 2;

    /**
     * 默认状态的登录凭证的超时时间
     * 12小时
     */
    int DEFAULT_EXPIRED_SECONDS = 3600 * 12;

    /**
     * 记住我的登录凭证超时时间
     * 100天
     */
    int REMEMBER_EXPIRED_SECONDS = 3600 * 24 * 100;


    //评论实体类为：帖子
    int ENTITY_TYPE_POST = 1;
    //评论实体类为：评论
    int ENTITY_TYPE_COMMENT = 2;
    //评论实体类为：用户
    int ENTITY_TYPE_USER = 3;

    //系统用户Id
    int SYSTEM_USER_ID = 1;

    /**
     * 权限: 普通用户
     */
    String AUTHORITY_USER = "user";

    /**
     * 权限: 管理员
     */
    String AUTHORITY_ADMIN = "admin";


    //交换机名称
    String EXCHANGE_NAME="direct_exchange";

    //队列名称：评论
    String QUEUE_COMMENT = "queue_comment";
    //队列名称：点赞
    String QUEUE_LIKE = "queue_like";
    //队列名称：关注
    String QUEUE_FOLLOW = "queue_follow";

    //路由名称
    String ROUTE_COMMENT = "comment";
    String ROUTE_LIKE = "like";
    String ROUTE_FOLLOW = "follow";


    /**
     * 手机号正则
     */
    String PHONE_REGEX = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";
    /**
     * 邮箱正则
     */
    String EMAIL_REGEX = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";



}
